package com.intelligentcar.springboot.service.serverImpl;

import com.intelligentcar.springboot.bean.News;
import com.intelligentcar.springboot.bean.Proposal;
import com.intelligentcar.springboot.mapper.ProposalMapper;
import com.intelligentcar.springboot.service.ProposaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProposaServerImpl implements ProposaService {
    @Autowired
    private ProposalMapper proposalMapper;


    @Override
    public List<Proposal> LookLook1(Proposal proposal) {
        return proposalMapper.LookLook1(proposal);
    }

    @Override
    public List<Proposal> LookproposalTime(String proposalTime) {
        return proposalMapper.LookproposalTime(proposalTime);
    }

    @Override
    public List<Proposal> LookProposal() {
        return proposalMapper.LookProposal();
    }

    @Override
    public int selectProposal() {
        return proposalMapper.selectProposal();
    }

    @Override
    public int updateProposal(long id, long uid, String proposalMessage, String proposalPicture, String proposalTime, String state, String response) {
        return proposalMapper.updateProposal(id,uid,proposalMessage,proposalPicture,proposalTime,state,response);
    }


}
